package com.ziytek.web.citizen.enums;

import lombok.Getter;

/**
 * @author fenghx
 * @version 1.0
 * @className ControlVersionEnum
 * Description:
 * @date 2024/3/19 14:30
 */
@Getter
public enum ControlVersionEnum {
    /**
     * Description: 机柜对应分控板关系
     */
    CONTROL_ONE_20("20", 1),
    CONTROL_TWO_21("21", 2),
    CONTROL_THREE_10("10", 3),
    CONTROL_FOUR_11("11", 4),
    CONTROL_FIVE_22("22", 5),
    CONTROL_SIX_23("23", 6),
    CONTROL_SEVEN_12("12", 7),
    CONTROL_EIGHT_13("13", 8),

    CONTROL_NINE_24("24", 9),
    CONTROL_TEN_25("25", 10),
    CONTROL_ELEVEN_14("14", 11),
    CONTROL_TWELVE_15("15", 12),
    CONTROL_THIRTEEN_26("26", 13),
    CONTROL_FOURTEEN_27("27", 14),
    CONTROL_FIFTEEN_16("16", 15),
    CONTROL_SIXTEEN_17("17", 16),

    CONTROL_SEVENTEEN_28("28", 17),
    CONTROL_EIGHTEEN_29("29", 18),
    CONTROL_NINETEEN_18("18", 19),
    CONTROL_TWENTY_19("19", 20),
    CONTROL_TWENTY_ONE_2A("2A", 21),
    CONTROL_TWENTY_TWO_2B("2B", 22),
    CONTROL_TWENTY_THREE_1A("1A", 23),
    CONTROL_TWENTY_FOUR_1B("1B", 24),

    CONTROL_TWENTY_FIVE_2C("2C", 25),
    CONTROL_TWENTY_SIX_2D("2D", 26),
    CONTROL_TWENTY_SEVEN_1C("1C", 27),
    CONTROL_TWENTY_EIGHT_1D("1D", 28),
    CONTROL_TWENTY_NINE_2E("2E", 29),
    CONTROL_THIRTY_2F("2F", 30),
    CONTROL_THIRTY_ONE_1E("1E", 31),
    CONTROL_THIRTY_TWO_1F("1F", 32),

    CONTROL_THIRTY_THREE_80("80", 33),
    CONTROL_THIRTY_FOUR_81("81", 34),
    CONTROL_THIRTY_FIVE_40("40", 35),
    CONTROL_THIRTY_SIX_41("41", 36),
    CONTROL_THIRTY_SEVEN_82("82", 37),
    CONTROL_THIRTY_EIGHT_83("83", 38),
    CONTROL_THIRTY_NINE_42("42", 39),
    CONTROL_FORTY_43("43", 40),

    CONTROL_FORTY_ONE_84("84", 41),
    CONTROL_FORTY_TWO_85("85", 42),
    CONTROL_FORTY_THREE_44("44", 43),
    CONTROL_FORTY_FOUR_45("45", 44),
    CONTROL_FORTY_FIVE_86("86", 45),
    CONTROL_FORTY_SIX_87("87", 46),
    CONTROL_FORTY_SEVEN_46("46", 47),
    CONTROL_FORTY_EIGHT_47("47", 48),

    CONTROL_FORTY_NINE_88("88", 49),
    CONTROL_FIFTY_89("89", 50),
    CONTROL_FIFTY_ONE_48("48", 51),
    CONTROL_FIFTY_TWO_49("49", 52),
    CONTROL_FIFTY_THREE_8A("8A", 53),
    CONTROL_FIFTY_FOUR_8B("8B", 54),
    CONTROL_FIFTY_FIVE_4A("4A", 55),
    CONTROL_FIFTY_SIX_4B("4B", 56),

    CONTROL_FIFTY_SEVEN_8C("8C", 57),
    CONTROL_FIFTY_EIGHT_8D("8D", 58),
    CONTROL_FIFTY_NINE_4C("4C", 59),
    CONTROL_SIXTY_4D("4D", 60),
    CONTROL_SIXTY_ONE_8E("8E", 61),
    CONTROL_SIXTY_TWO_8F("8F", 62),
    CONTROL_SIXTY_THREE_4E("4E", 63),
    CONTROL_SIXTY_FOUR_4F("4F", 64);


    /**
     * 分控板地址
     */
    private final String code;
    /**
     * 第几个分控板
     */
    private final int position;


    ControlVersionEnum(String code, int position) {
        this.code = code;
        this.position = position;
    }
}
